export const globalFun = {
	relogin(){
		let that=this;
		that.$message({
			type: 'success',
			message: '未登录,请重新登录'
		});
		setTimeout(()=>{
			that.$router.push({
				path:'/'
			})
		},1500)
	},
	
	//提示框
	showToast(msg,icon){
		let that=this;
		that.$message({
			message: msg,
			type: icon?icon:'none'
		});
	},
}